@extends("admin.public.layout")

@section("content")
        <div class="container-xxl flex-grow-1 container-p-y">
            <div class="row">
                <!-- Form controls -->
                <div class="col-md-6">
                    <div class="card mb-4">
                        <h5 class="card-header">{{$pageName}}</h5>
                        <div class="card-body">
                            <form action="{{ route('adminUserSave') }}" method="post">
                                @csrf

                                <div class="mb-3">
                                    <label for="user_name" class="form-label">用户名</label>
                                    <input required type="text" class="form-control" id="user_name" name="user_name">
                                </div>
                                <div class="mb-3">
                                    <label for="user_phone" class="form-label">用户手机号</label>
                                    <input required class="form-control" type="text" id="user_phone" name="user_phone">
                                </div>

                                <div class="mb-3">
                                    <label for="user_password" class="form-label">用户密码</label>
                                    <input required class="form-control" type="text" id="user_password" name="user_password">
                                </div>
                                <div class="mb-3">
                                    <label for="role_id" class="form-label">用户角色</label>
                                    <select required class="form-select" id="role_id" name="role_id" aria-label="Default select example">
                                        <option selected="">--选择用户角色--</option>

                                        @foreach($roles as $k => $v)
                                            <option value="{{$k}}">{{$v}}</option>

                                        @endforeach
                                    </select>
                                </div>

                                <div class="mb-3">
                                    <input required type="submit" class="form-control"  value="创建">
                                </div>
                            </form>

                        </div>
                    </div>
                </div>

            </div>
        </div>

@endsection
